
package com.mu.rai.services;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;



/**
 * <p>Java class for activeChannel complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="activeChannel">
 *   &lt;complexContent>
 *     &lt;extension base="{http://services.rai.mu.com}channel">
 *       &lt;sequence>
 *         &lt;element name="commands" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;choice maxOccurs="unbounded" minOccurs="0">
 *                     &lt;element name="expect_command" type="{http://services.rai.mu.com}expectCommand"/>
 *                     &lt;element name="password_command" type="{http://services.rai.mu.com}passwordCommand"/>
 *                     &lt;element name="send_command" type="{http://services.rai.mu.com}sendCommand"/>
 *                     &lt;element name="sleep_command" type="{http://services.rai.mu.com}sleepCommand"/>
 *                   &lt;/choice>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="prompt" type="{http://services.rai.mu.com}regex" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "activeChannel", propOrder = {
    "commands",
    "prompt"
})
@XmlSeeAlso({
    ActiveIPChannel.class,
    ConsoleChannel.class
})
public abstract class ActiveChannel
    extends Channel
{

    protected ActiveChannel.Commands commands;
    protected String prompt;

    /**
     * Gets the value of the commands property.
     * 
     * @return
     *     possible object is
     *     {@link ActiveChannel.Commands }
     *     
     */
    public ActiveChannel.Commands getCommands() {
        return commands;
    }

    /**
     * Sets the value of the commands property.
     * 
     * @param value
     *     allowed object is
     *     {@link ActiveChannel.Commands }
     *     
     */
    public void setCommands(ActiveChannel.Commands value) {
        this.commands = value;
    }

    /**
     * Gets the value of the prompt property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPrompt() {
        return prompt;
    }

    /**
     * Sets the value of the prompt property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPrompt(String value) {
        this.prompt = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;choice maxOccurs="unbounded" minOccurs="0">
     *           &lt;element name="expect_command" type="{http://services.rai.mu.com}expectCommand"/>
     *           &lt;element name="password_command" type="{http://services.rai.mu.com}passwordCommand"/>
     *           &lt;element name="send_command" type="{http://services.rai.mu.com}sendCommand"/>
     *           &lt;element name="sleep_command" type="{http://services.rai.mu.com}sleepCommand"/>
     *         &lt;/choice>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "expectCommandOrPasswordCommandOrSendCommand"
    })
    public static class Commands {

        @XmlElements({
            @XmlElement(name = "password_command", type = PasswordCommand.class, nillable = true),
            @XmlElement(name = "send_command", type = SendCommand.class, nillable = true),
            @XmlElement(name = "sleep_command", type = SleepCommand.class, nillable = true),
            @XmlElement(name = "expect_command", type = ExpectCommand.class, nillable = true)
        })
        protected List<SetupCommand> expectCommandOrPasswordCommandOrSendCommand;

        /**
         * Gets the value of the expectCommandOrPasswordCommandOrSendCommand property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the expectCommandOrPasswordCommandOrSendCommand property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getExpectCommandOrPasswordCommandOrSendCommand().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link PasswordCommand }
         * {@link SendCommand }
         * {@link SleepCommand }
         * {@link ExpectCommand }
         * 
         * 
         */
        public List<SetupCommand> getExpectCommandOrPasswordCommandOrSendCommand() {
            if (expectCommandOrPasswordCommandOrSendCommand == null) {
                expectCommandOrPasswordCommandOrSendCommand = new ArrayList<SetupCommand>();
            }
            return this.expectCommandOrPasswordCommandOrSendCommand;
        }

    }

}
